const e = require("./Test");
console.log(e)
console.log(e.default)
console.log(e.default.Msg)
console.log(e.default.constant)
module.exports = function (res) {
  var code = res.code;
  var data = res.data;
  var data2 = res.data2;
  var message = res.message;
  if (code !== 200) {
    if (message) {
      e.default.Msg(res.message);
      return;
    }
  } else {
    //文件下载url
    var path = e.default.constant.FILE_SERVER + data;
    location.href = e.default.constant.API_SERVER + "/open/downloadFileByHttp?fileName=" + data2 + "&path=" + path + data2;
  }
};
